package com.yunyike.mapper;

import java.util.List;

import com.yunyike.dto.MerchandiseSearchDTO;
import com.yunyike.model.Merchandise;
import com.yunyike.utils.mybatis.PageBean;

public interface MerchandiseMapper {
    int deleteByPrimaryKey(String merchandiseId);

    int insert(Merchandise record);

    int insertSelective(Merchandise record);

    Merchandise selectByPrimaryKey(String merchandiseId);

    List<Merchandise> selectBySelective(Merchandise record);
    
    Merchandise findMerchandiseByNumber(String merchandiseNumber);
    
    Merchandise findMerchandiseByBarCode(String merchandiseBarCode);
    
    List<Merchandise> findMerchandiseByIds(List<String> merchandiseIds);
    
    List<Merchandise> findMerchandiseListPageByShop(PageBean<String> shopId);
    
    List<Merchandise> findMerchandiseListPageByCondition(PageBean<MerchandiseSearchDTO> merchandiseSearchDTO);
    
    List<Merchandise> findAllMerchandises();

    int updateByPrimaryKeySelective(Merchandise record);

    int updateByPrimaryKey(Merchandise record);
}